﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IsmsExplorer.Infrastructure.DomainBase;
using IsmsExplorer.Infrastructure.RepositoryFramework;

namespace IsmsExplorer.Infrastructure {
    public interface IUnitOfWork {
        void RegisterAdded(EntityBase entity, IUnitOfWorkRepository repository);
        void RegisterUpdated(EntityBase entity, IUnitOfWorkRepository repository);
        void RegisterDeleted(EntityBase entity, IUnitOfWorkRepository repository);
        void Commit();
    }
}
